package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sinosoft.ebusiness.domain.elementManage.GeProductRation;
import com.sinosoft.ebusiness.domain.elementManage.GeProductRationItemkind;

/**
 * POJO类GeProductRationSection
 */
@Entity
@Table(name = "GE_PRODUCT_RATION_SECTION")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class GeProductRationSection implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6938500112105885598L;

	/** 属性combocode */
	private String combocode;

	/** 属性geProductRation */
	private GeProductRation geProductRation;

	/** 属性comboename */
	private String comboename;

	/** 属性combocname */
	private String combocname;

	/** 属性combotname */
	private String combotname;
	
	private String serialno;
	/** 属性免赔标志*/
	private String franchiseSign;
	/**属性组合免赔额*/
	private String combinationDeductibles;
	
	private BigDecimal partialPremium;
	
	/** 属性投保份数*/
	private String insureNumber;
	
	/** 属性备注*/
	private String remark;
	
	/**	属性 是否部分必投保标志		定额产品	**/
	private String partselecttion;
	
	/** 属性geProductRationItemkinds */
	private List<GeProductRationItemkind> geProductRationItemkinds = new ArrayList<GeProductRationItemkind>(
			0);

	/**
	 * 类GeProductRationSection的默认构造方法
	 */
	public GeProductRationSection() {
	}

	/**
	 * 属性combocode的getter方法
	 */
	
	@Id
	@Column(name = "COMBOCODE")
	public String getCombocode() {
		return this.combocode;
	}

	/**
	 * 属性combocode的setter方法
	 */
	public void setCombocode(String combocode) {
		this.combocode = combocode;
	}

		
	
	public String getSerialno() {
		return serialno;
	}

	public void setSerialno(String serialno) {
		this.serialno = serialno;
	}

	/**
	 * 属性geProductRation的getter方法
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RATIONCODE",nullable=false)
	@JsonBackReference
	public GeProductRation getGeProductRation() {
		return this.geProductRation;
	}

	/**
	 * 属性geProductRation的setter方法
	 */
	public void setGeProductRation(GeProductRation geProductRation) {
		this.geProductRation = geProductRation;
	}

	/**
	 * 属性comboename的getter方法
	 */

	@Column(name = "COMBOENAME")
	public String getComboename() {
		return this.comboename;
	}

	/**
	 * 属性comboename的setter方法
	 */
	public void setComboename(String comboename) {
		this.comboename = comboename;
	}

	/**
	 * 属性combocname的getter方法
	 */

	@Column(name = "COMBOCNAME")
	public String getCombocname() {
		return this.combocname;
	}

	/**
	 * 属性combocname的setter方法
	 */
	public void setCombocname(String combocname) {
		this.combocname = combocname;
	}

	/**
	 * 属性combotname的getter方法
	 */

	@Column(name = "COMBOTNAME")
	public String getCombotname() {
		return this.combotname;
	}

	/**
	 * 属性combotname的setter方法
	 */
	public void setCombotname(String combotname) {
		this.combotname = combotname;
	}

	/**
	 * 属性geProductRationItemkinds的getter方法
	 */
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "geProductRationSection")
	@OrderBy("id.serialno asc")
	public List<GeProductRationItemkind> getGeProductRationItemkinds() {
		return this.geProductRationItemkinds;
	}

	/**
	 * 属性geProductRationItemkinds的setter方法
	 */
	public void setGeProductRationItemkinds(
			List<GeProductRationItemkind> geProductRationItemkinds) {
		this.geProductRationItemkinds = geProductRationItemkinds;
	}
	@Column(name = "FRANCHISESIGN")
	public String getFranchiseSign() {
		return franchiseSign;
	}
	
	public void setFranchiseSign(String franchiseSign) {
		this.franchiseSign = franchiseSign;
	}
	@Column(name = "COMBINATIONDEDUCTIBLES")
	public String getCombinationDeductibles() {
		return combinationDeductibles;
	}

	public void setCombinationDeductibles(String combinationDeductibles) {
		this.combinationDeductibles = combinationDeductibles;
	}
	@Column(name = "PARTIALPREMIUM")
	public BigDecimal getPartialPremium() {
		return partialPremium;
	}

	public void setPartialPremium(BigDecimal partialPremium) {
		this.partialPremium = partialPremium;
	}

	@Column(name="INSURENUMBER")
	public String getInsureNumber() {
		return insureNumber;
	}

	public void setInsureNumber(String insureNumber) {
		this.insureNumber = insureNumber;
	}

	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name="PARTSELECTTION")
	public String getPartselecttion() {
		return partselecttion;
	}

	public void setPartselecttion(String partselecttion) {
		this.partselecttion = partselecttion;
	}

	
	
}
